package com.ddlc.anno;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * https://gitee.com/tangbuzhi
 *
 * @author: Tangbuzhi
 * @version:
 * @package:
 * @description:
 * @modify:
 * @date: 2018/4/19
 */

@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface StudentInfo {
    enum Gender {MALE, FEMAIL}//性别枚举

    String name();//姓名

    int age();//年龄

    Gender gender() default Gender.MALE;

    String address() default "hangzhou";//地址
}
